import {request} from 'umi';
import {IUser} from '@/interface/user';

//登录
export const login = (data:IUser) => {
    return request('/user/login',{method:'POST',data})
}

//获取个人信息
export const getUserInfo = () => {
    return request('/user/userInfo',{method:'get'})
}

//获取个人视图权限
export const getViewAuthority = (user_id:string) => {
    return request('/user/new',{method:'get',params:{user_id}})
}

